package com.maxlen.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.maxlen.admin.entity.Permission;
import com.maxlen.admin.entity.dto.PageParamDto;
import com.maxlen.admin.entity.dto.PermissionDto;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2022-10-11
 */
public interface IPermissionService extends IService<Permission> {

    List<String> findAllPathByRoleId(Long id);

    Page<Permission> findAllByPage(PageParamDto pageParamDto);

    boolean add(PermissionDto permissionDto);

    boolean deleteById(Long id);

    boolean updateById(PermissionDto permissionDto);

    List<String> findPathByRequest(HttpServletRequest request);

    List<Permission> findListByRoleId(Long id);

    boolean deleteByIdList(List<Long> multipleId);
}
